﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ScreenTranslate
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
            Center.Instance.forms.Add(FormType.Login, this);
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 学生端按钮点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            //跳转到学生端窗口
            Form1 form1 = new Form1();
            form1.Show();
            this.Hide();
        }

        /// <summary>
        /// 教师端按钮点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            //跳转到教师端窗口
            Teacher teacher = new Teacher();
            teacher.Show();
            this.Hide();
        }
    }
}
